<?php
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/DAL/DAL.LessonOperator.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/smarty_inc.php");
$LessonResult=DAL_lessonOperator::GetLessonList();
 foreach ($LessonResult as $key => $value) {
            if ($value["bookid"] == 1) {
                $xinbian1[] = $value["lesson"];
            } else if ($value["bookid"] == 2) {
                $xinbian2[] = $value["lesson"];
            } else if ($value["bookid"] == 3) {
                $dajia1[] = $value["lesson"];
            }
        }

$smarty=  getSmartyBC();
//$smarty->assign("LessonResult", $LessonResult);
$smarty->assign("path", $_SERVER['DOCUMENT_ROOT']."/RecJP/Common.php");
$smarty->assign("xinbian1", $xinbian1);
$smarty->assign("xinbian2", $xinbian2);
$smarty->assign("dajia1", $dajia1);
$smarty->display('SelectUnit.tpl.htm');
?>
